package org.huifei.a7_decorator;

/**
 * Created by huifei on 2017/7/11.
 */
public class Decorator implements Source{

    private Source source;

    public Decorator(Source source) {
        this.source = source;
    }

    @Override
    public void method() {
        System.out.println("before decorator");
        source.method();
        System.out.println("after decorator");
    }
}
